package com.mygame

import javafx.geometry.Point2D

enum class EType {
    PLAYER,
    PLAYER2,
    BARREL,
    ENEMY,
    ENEMY2,
    BULLET,
    CAMARA,
    WALL,
    GROUND,
    PATH,
    HP,
}

enum class Dir {
    LEFT(Point2D(-1.0, 0.0)), RIGHT(Point2D(1.0, 0.0)), UP(Point2D(0.0, -1.0)), DOWN(Point2D(0.0, 1.0));

    var value: Point2D = Point2D(1.0, 0.0)

    constructor(value: Point2D) {
        this.value = value
    }
}

object Const {
    const val GRID_WIDTH = 20//一共几格方块
    const val GRID_HEIGHT = 20
    const val CELL_WIDTH = 40//方块大小
    const val CELL_HEIGHT = 40

    const val NAME = "name"
    const val WIDGET_ENTITY = "widgetEntity"
    const val HP_ENTITY = "hpEntity"
    const val PATH = "path"
    const val TAG_ENTITY = "tagEntity"
    const val BULLET_ENTITY = "bulletEntity"
    const val COLOR = "color"
    const val STATUS = "status"
    const val GRID = "grid"
    const val RADIUS = "r"
    const val DIR = "dir"
    const val SPEED = "speed"
    const val WIDTH = "width"
    const val HEIGHT = "height"
    const val HEALTH = "health"
    const val MANA = "mana"
}